Adwaita: correct size for ssd titlebars
authorLapo Calamandrei <calamandrei@gmail.com>
Mon, 15 Feb 2016 15:56:01 +0000 (16:56 +0100)
committerLapo Calamandrei <calamandrei@gmail.com>
Mon, 15 Feb 2016 15:56:47 +0000 (16:56 +0100)
fixes https://bugzilla.gnome.org/show_bug.cgi?id=762032

gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index fb8d3e63db01da097f4f071909e4e0db41b4b87c..7eb7b20497f2eb08f841bce5254759c79b52c234 100644 (file)
@@ -1364,12 +1364,14 @@ headerbar {
   .maximized & { &:backdrop, & { border-radius: 0; }} // squared corners when the window is maximized or tiled
 
   &.default-decoration {
-    padding: 4px;
-    min-height: 36px;
+    padding: 4px;
+    min-height: 28px;
 
-    button {
+    button.titlebutton {
       min-height: 26px;
-      padding: 0 5px;
+      min-width: 26px;
+      margin: 0;
+      padding: 0;
     }
   }
 
index 5a426c2aaabfaced3afd9d94cb43266f8c212d1a..3bde8fd504929aca49186c981bfad6cbfb45beb9 100644 (file)
@@ -1835,12 +1835,14 @@ headerbar {
     border-radius: 0; }
   .default-decoration.titlebar:not(headerbar),
   headerbar.default-decoration {
-    padding: 4px;
-    min-height: 36px; }
-    .default-decoration.titlebar:not(headerbar) button,
-    headerbar.default-decoration button {
+    padding: 4px;
+    min-height: 28px; }
+    .default-decoration.titlebar:not(headerbar) button.titlebutton,
+    headerbar.default-decoration button.titlebutton {
       min-height: 26px;
-      padding: 0 5px; }
+      min-width: 26px;
+      margin: 0;
+      padding: 0; }
   .titlebar:not(headerbar) entry, .titlebar:not(headerbar) spinbutton:not(.vertical),
   .titlebar:not(headerbar) spinbutton,
   .titlebar:not(headerbar) separator,
index 16c41bb7773f45b5129c206ad284d3832671ffdb..fced9382d94a61a89241d7d109e55643d17a7e2a 100644 (file)
@@ -1839,12 +1839,14 @@ headerbar {
     border-radius: 0; }
   .default-decoration.titlebar:not(headerbar),
   headerbar.default-decoration {
-    padding: 4px;
-    min-height: 36px; }
-    .default-decoration.titlebar:not(headerbar) button,
-    headerbar.default-decoration button {
+    padding: 4px;
+    min-height: 28px; }
+    .default-decoration.titlebar:not(headerbar) button.titlebutton,
+    headerbar.default-decoration button.titlebutton {
       min-height: 26px;
-      padding: 0 5px; }
+      min-width: 26px;
+      margin: 0;
+      padding: 0; }
   .titlebar:not(headerbar) entry, .titlebar:not(headerbar) spinbutton:not(.vertical),
   .titlebar:not(headerbar) spinbutton,
   .titlebar:not(headerbar) separator,